<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>{$title}</h2>
    </div>
    <form method="POST"  id="form-export" action="{:U('exportmonthdepartmentproduct',array('month'=>$month,'dpid'=>$dpid,'department'=>$department))}">
    <div class="panel panel-default">
        <div class="panel-body">
                <a class="btn btn-default" id="ExportSubmit">导出</a>
        </div>
    </div>
    </form>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>消耗品</th>
                <th>单位</th>
                <th>消耗（￥）</th>
                <th>数量</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.pname}</td>
                        <td>{$vo.unit}</td>
                        <td>{$vo.total_fee|number_format}</td>
                        <td>{$vo.cnt}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $('#ExportSubmit').click(function () {
            document.getElementById("form-export").submit();
        });
        highlight_subnav('{:U('Subpro/monthexpend')}');
    </script>
</block>
